package LeetCode;

import java.util.Scanner;

public class Test{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextLine()){
            double m = sc.nextInt();
            double n = sc.nextInt();
            double num = m;
            for (int i = 0; i < n - 1; i++) {
                num += Math.sqrt(m);
                m = Math.sqrt(m);
            }
            System.out.printf("%.2f",num);
            System.out.println();
        }
    }

}
